package com.mxpio.erp.common.plan.service;

import com.mxpio.erp.common.plan.entity.OrganizationDemandLine;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.system.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface OrganizationDemandLineService extends BaseService<OrganizationDemandLine> {

    @Transactional(readOnly = false)
    Page<OrganizationDemandLine> listPage(Pageable page, Criteria c);

    @Transactional(readOnly = false)
    List<OrganizationDemandLine> listAll(Criteria c);
}
